<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>发布作品</title>
	<!--字体图标cdn-->
	<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	<!-- 新 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

	<!--主体区域结束-->
	<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.min.js"></script>

	<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

<style type="text/css">
	body {
	background-color: #2e2e2e;
	padding-top: 20px;
	color: #ffc600;
}
.navbar{
	background-color: black;
	border: none;
}
header h3{
	color: #ffc600;
	position: absolute;
	left: 43%;
	top: -7px;
}

#back{
	color: #ffc600;
	position: relative;
	left: -10px;
}
</style>

</head>
<body>
<header>
    <div class="container">
      <nav class="navbar navbar-default">
        <div class="navbar-header">
          <div class="logo">
            <a href="home"><img src="images/logo.png"/></a>
          </div>
         </div>
         <h3 >轮播图管理</h3>
          <ul class="nav navbar-nav navbar-right">
            <li><a id="back"
            href="home.html">返回首页</a></li>
          </ul>
      </nav>
    </div>
  </header>	 
	 
	<div id="myCarousel" class="container">
		<div class="row">
			<!--左侧主要内容-->
			<div class="col-md-offset-2 col-md-8">
				<div v-for="b in banner_arr">
					<img :src="b.imgurl" class="img-responsive" alt="">
					<button @click="deleteById(b.id)" class="btn btn-danger">删除</button>
				</div>
				<hr>
				<h3 class="page-header text-center">发布轮播图</h3>
				<form method="post" enctype="multipart/form-data">
					<input type="file" name="file">
					<button type="button" @click="upload()">上传轮播图</button>
				</form>
			</div>
			<!--左侧内容结束-->
		</div>
	</div>

<!--网页底部-->
<footer class="well container">
	<b> Copyright © 2018 Tedu.cn All Rights Reserved
		京ICP备16053980号-5 <a href="http://www.tedu.cn/">达内时代科技集团有限公司</a>
		版权所有
	</b> <span class="pull-right"> <b>Version</b> 0.1.0
			</span>
</footer>
</body>

<script src="js/banner.js"></script>
</html>